package cn.com.jtang.wedding.dao;

import java.util.List;
import java.util.Map;

import cn.com.jtang.wedding.model.User;

public interface UserDao {
	
	public String insert(User user);
	
	public User queryById(Long id);
	
	public int updateById(Long id, User user);
	
	public int deleteById(Long id);
	
	public List queryAll(Map<String, Object> map, int start,int end, String... orderByStr);
	
	public int getCount(Map<String, Object> map);

	public User queryByKey(String keyName, String keyValue);
}
